{extend name="main/index" /}
{block name="main"}
<!--角色列表页面-->
<div class="content-page">
    <div class="content">
        <form class="form-inline" action="{:url('admin/Con1/doRole',['id'=>$user['au_id']])}" method="post">
            <input type="hidden" name="_method" value="PUT" >
            <table class="table table-hover text-center">
                <tr>
                    <th><h2 class="text-center">--角色分配</h2></th>
                </tr>
                <tr>
                    <td>
                        <div class="form-group">
                            <label for="exampleInputName2">管理员编号 ： </label>
                            <input type="text" class="form-control" id="exampleInputName2" name="au_id" readonly value="{$user['au_id']}">
                        </div>
                    </td>
                </tr>
                <br>

                <tr>
                    <td>
                        <div class="form-group">
                            <label for="exampleInputName2">管理员名称 ： </label>
                            <input type="text" class="form-control" id="exampleInputName2" name="au_name" readonly value="{$user['au_name']}">
                        </div>
                    </td>
                </tr>
                <br>

                <tr>
                    <td>
                        <div class="form-group">
                            <label for="exampleInputName2">角色选择 ： </label>
                            {volist name="role" id="v"}
                            <input type="checkbox" id="inlineCheckbox1" value="{$v['r_id']}" name="rid[]">{$v['r_name']}
                            {/volist}
                        </div>
                    </td>
                </tr>

                <br>

                <tr>
                    <td>
                        <button type="submit" class="btn btn-danger">确定修改</button>
                    </td>
                </tr>

            </table>
        </form>
    </div>
</div>
{/block}